package com.gz.entity;

public class Pet {
    private Integer id;
    private String nickName;
    //一个pet对应一个主人
    private User user;

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", nickName='" + nickName + '\'' +
                ", user=" + user +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
